﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Azad;
using NazSoft.Framework.Extensions;

public partial class NewsDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BCL.Repository.ImageInformationRepository repo = new BCL.Repository.ImageInformationRepository();
        var file = repo.Get(Request.QueryString["newsid"].ToInt32Safe());
        if (file != null)
        {
            NewsImage.ImageUrl = file.CurrentFileName;
            //this.Page.Title = file.
        }
        //SilverlightService silverlightService = new SilverlightService();
        //var commercials = silverlightService.GetCommercial(DateTime.Now);
        //rptHeader.DataSource = commercials.Where(f => f.TypeId == 106);
        //rptHeader.DataBind();

        this.Page.Title = "Weekly RangoRoop Karachi";
    }
}